<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="app">
        <span style="color: #ff0000">
         支付结果：{{msg}}
        </span>
</div>
<script src="script/vue.js"></script>
<script src="script/axios.min.js"></script>
<script src="script/moment.js"></script>
</body>
<script>
    new Vue({
        el:"#app",
        data:{
            msg:'',
        },
        mounted() {
            let user=JSON.parse(sessionStorage.getItem("cususer"));
            let type=sessionStorage.getItem("type");
            var fullPath=window.location.search;
            var url=fullPath.split("?")[1];
            axios.get("/api/finance-service-user/alipay/checksign/"+user.id+"/"+type+"?"+url).then(
                (res)=>{
                    if(res.data.success){
                        this.msg = "支付成功"
                    }else{
                        this.msg = "支付失败"
                    }

                }
            );
             }
    });
</script>
</html>
